package com.avic.modules.quartz.task;

import com.avic.modules.backup4Dameng.DmpBackup;
import com.avic.modules.log.domain.vo.LogEnumeration;
import com.avic.modules.log.domain.vo.LogVo;
import com.avic.modules.log.service.LogsService;
import org.springframework.stereotype.Component;

//@Component 不开启
public class DmpBackupTask {

    private final DmpBackup backup;
    private final LogsService logsService;

    public DmpBackupTask(DmpBackup backup, LogsService logsService) {
        this.backup = backup;
        this.logsService = logsService;
    }
//
//    public void runDMDexp() {
//        backup.exportDmp();
//        LogVo logVo = new LogVo();
//        String behavior = "[ DM 自动备份 ]" + "执行成功";
//        logVo.setAction(LogEnumeration.Autobackup.getMessage());
//        logVo.setBehavior(behavior);
//        logsService.sysAdminSave(logVo);
//    }
    
}
